package cn.gok.cglib;

/**
 * @Author: chenfan
 * @Description:
 */
public class Test {
    public static void main(String[] args) {

        CglibProxyLog cglibProxyLog = new CglibProxyLog(new UserServiceImpl());
        UserServiceImpl userServiceImpl = (UserServiceImpl)cglibProxyLog.getCglibProxyObject();
        userServiceImpl.getUser();


        CglibProxyLog cglibProxyLog1 = new CglibProxyLog(new ItemServiceImpl());
        ItemServiceImpl itemServiceImpl = (ItemServiceImpl)cglibProxyLog1.getCglibProxyObject();
        itemServiceImpl.addItem();

    }
}
